package com.linxin.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 */
@Slf4j // 日志输出
@SpringBootApplication // 启动类
@ServletComponentScan // 在服务启动时扫描过滤器
@EnableTransactionManagement // 操作多张表, 添加事务控制
@EnableCaching // 开启缓存
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run((ReggieApplication.class));
        log.info("项目启动成功!!!");
    }
}
